<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<form id="pagerForm" method="post" action="family.do">

	<input type="hidden" name="jkdah"  value='${params.jkdah}'/>
	<input type="hidden" name="xm" value="${params.xm}" />
	<input type="hidden" name="zjh" value="${params.zjh}" />
	<input type="hidden" name="brdh" value="${params.brdh}" />
	<input type="hidden" name="pageNum" value="${params.pageNum}" />
	<input type="hidden" name="numPerPage" value="${params.numPerPage}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="family.do" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					户主姓名：<input type="text" name="hzxm" value="${params.hzxm}"/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="toAddFamily.do" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="deleteFamily.do?fid={fid}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="toUpdateFamily.do?fid={fid}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="familyExport.do" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="150" align="center">家庭档案号</th>
				<th width="150" align="center">户主姓名</th>
				<th width="150" align="center">住房类型</th>
				<th width="150" align="center">家庭人数</th>
				<th width="150" align="center">负担老人数</th>
				<th width="150" align="center">负责医生</th>
				<th width="150" align="center">创建日期</th>
				<th width="150" align="center">建档机构</th>
			</tr>
		</thead>
		<tbody>
			 <c:forEach items="${family}" var="node">
			      <tr target="fid" rel="${node.fid}">
			      	 <td><input type="checkbox" name="ids" value="${node.fid}"/></td>
			      	 <td align="center"><c:out value="${node.fcode}"></c:out></td>
			         <td align="center"><c:out value="${node.hzxm}"></c:out></td>
				     <td align="center"><c:out value="${node.zfmc}"></c:out></td>
				     <td align="center"><c:out value="${node.jtrs}"></c:out></td>
				     <td align="center"><c:out value="${node.fdlrs}"></c:out></td>
				     <td align="center"><c:out value="${node.ysmc}"></c:out></td>
		     		 <td><input type="text" value="<fmt:formatDate value='${node.cjrq}' pattern='yyyy-MM-dd'/>" class="date" />
				     <td align="center"><c:out value="${node.oname}"></c:out></td>
				  </tr>
             </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>每页10条，共${params.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${params.totalCount}" numPerPage="${params.pageSize}" pageNumShown="10" currentPage="${params.pageNum}"></div>

	</div>
</div>